home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / windows / utils / ad20_c.arj / UPDATE.BAT < prev    next >
DOS Batch File  |  1993-04-23  |  1KB  |  48 lines

  1. @echo off
  2. if not "%3" == "" goto test
  3. Echo The proper usage is "%0 install_drive afterdark_directory windows_directory"
  4. echo or for example "%0 a: c:\afterdrk c:\windows"
  5. goto end
  6. :test
  7. if not exist %1\patch.exe echo Install drive is incorrect      
  8. if not exist %1\patch.exe goto warning
  9. if not exist %2\ad.exe echo The Afterdrk directory is incorrect    
  10. if not exist %2\ad.exe goto warning
  11. if not exist %3\ad_prefs.ini echo The Windows directory is incorrect.  
  12. if not exist %3\ad_prefs.ini goto warning
  13.  
  14. echo Updating After Dark windows to VER 2.0c
  15. echo Install drive is:       %1
  16. echo Afterdark directory is: %2
  17. echo Windows directory is:   %3
  18. pause
  19. path > %2\oldpath.bat      
  20. copy %1\20C_AD.RTP %2
  21. copy %1\20C_AF.RTP %2
  22. copy %1\20C_AW.RTP %2
  23. copy %1\sn.dat %2
  24. copy %1\ppath.bat %2
  25. path;
  26. call %2\ppath %1 
  27. call %2\ppath %2
  28. call %2\ppath %3
  29. %1\patch.exe 20C_AD.RTP %2
  30. %1\patch.exe 20C_AF.RTP %2
  31. %1\patch.exe 20C_AW.RTP %3
  32. call %2\oldpath.bat
  33. del %2\oldpath.bat
  34. del %2\sn.dat
  35. del %2\ppath.bat
  36. DEL %2\20C_AD.RTP
  37. del %2\20C_AF.RTP
  38. DEL %2\20C_AW.RTP 
  39. IF EXIST %3\ad.cfg del %3\ad.cfg
  40. goto end
  41.  
  42. :warning
  43. echo if anything went wrong you are getting this message.  
  44. echo Please type UPDATE "Updater install drive" "Afterdark dir" "Windows dir"
  45. echo for example "UPDATE b: C:\win_apps\afterdrk d:\win31"
  46.  
  47. :end
  48.